package thinkingJava.chapter18;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;

public class TestEOF {
	public static void main(String[] args) throws IOException {
		String filename = "D:\\CVSROOT\\JavaSE\\src\\thinkingJava\\chapter18\\TestEOF.java";
		DataInputStream dis = new DataInputStream(new ByteArrayInputStream(BufferedInputFile.read(filename).getBytes()));
		while (dis.available() != 0) {
			System.out.print((char)dis.readByte());
		}
	}
}
